--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 26d5a3d2ff1488d6c4e0d8705da86f93838e0b34
Parents : 0941c81
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-07-13T12:04:21+02:00
Console launch
Changes
2 files changed, 5 insertions(+), 5 deletions(-)
Diff
diff --git a/sbapp/main.py b/sbapp/main.py
index 387346e6..309d1dda 100644
--- a/sbapp/main.py
+++ b/sbapp/main.py
@@ -548,7 +548,7 @@ class SidebandApp(MDApp):
import importlib
if importlib.util.find_spec('prompt_toolkit') != None:
from .sideband import console
- console.attach(self.sideband)
+ time.sleep(0.7); console.attach(self.sideband, full_screen=True)
else:
print("Could not start Sideband console, since the \"prompt-toolkit\" module is not available")
print("You can install it with \"pip install prompt-toolkit\"")
diff --git a/sbapp/sideband/console.py b/sbapp/sideband/console.py
index 3599b24c..9283772b 100644
--- a/sbapp/sideband/console.py
+++ b/sbapp/sideband/console.py
@@ -14,12 +14,12 @@ application = None
output_document = Document(text="", cursor_position=0)
output_field = None
-def attach(target_core):
+def attach(target_core, full_screen=False):
global sideband
sideband = target_core
RNS.logdest = RNS.LOG_CALLBACK
RNS.logcall = receive_output
- console()
+ console(full_screen=full_screen)
def parse(uin):
args = uin.split(" ")
@@ -61,7 +61,7 @@ def receive_output(msg):
output_document = output_document = Document(text=content, cursor_position=len(content))
output_field.buffer.document = output_document
-def console():
+def console(full_screen=False):
global output_document, output_field, application
search_field = SearchToolbar()
@@ -93,6 +93,6 @@ def console():
])
application = Application(layout=Layout(container, focused_element=input_field), key_bindings=kb,
- style=style, mouse_support=True, full_screen=False)
+ style=style, mouse_support=True, full_screen=full_screen)
set_log()
application.run()
\ No newline at end of file
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────